﻿using System.ComponentModel.DataAnnotations;

namespace WeChat.Entity
{
    /// <summary>
    /// 用户
    /// </summary>
    public class WeChatUsers : BaseEntity<int>
    {
        /// <summary>
        /// 用户名、昵称、密码长度
        /// </summary>
        public const int NameLength = 100;

        /// <summary>
        /// 用户名
        /// </summary>
        [StringLength(NameLength)]
        [Required]
        public string UserName { get; set; }

        /// <summary>
        /// 用户昵称
        /// </summary>
        [StringLength(NameLength)]
        [Required]
        public string UserNick { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [StringLength(NameLength)]
        [Required]
        public string UserPwd { get; set; }
    }
}
